package com.example.happiness.service.user.Impl;

import com.example.happiness.constant.Message;
import com.example.happiness.mapper.CategoryMapper;
import com.example.happiness.pojo.Category;
import com.example.happiness.service.user.UserCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserCategoryServiceImpl implements UserCategoryService {

    @Autowired
    CategoryMapper categoryMapper;

    public List<Category> getAllCategory() {
        return categoryMapper.getAllCategory(Message.ONE);
    }
}
